// 树木风格渐变效果样式变量
// 主色调渐变
$tree-gradient-primary: linear-gradient(135deg, #388E3C 0%, #2E7D32 50%, #1B5E20 100%);
$tree-gradient-light: linear-gradient(135deg, #66BB6A 0%, #4CAF50 50%, #388E3C 100%);
$tree-gradient-dark: linear-gradient(135deg, #2E7D32 0%, #1B5E20 50%, #0D47A1 100%);

// 树叶效果渐变
$leaf-gradient-green: linear-gradient(45deg, #81C784 0%, #66BB6A 50%, #4CAF50 100%);
$leaf-gradient-autumn: linear-gradient(45deg, #FFB74D 0%, #FF9800 50%, #F57C00 100%);
$leaf-gradient-spring: linear-gradient(45deg, #A5D6A7 0%, #81C784 50%, #66BB6A 100%);

// 树干效果渐变
$trunk-gradient: linear-gradient(180deg, #5D4037 0%, #4E342E 50%, #3E2723 100%);
$trunk-gradient-light: linear-gradient(180deg, #6D4C41 0%, #5D4037 50%, #4E342E 100%);

// 树木阴影效果
$tree-shadow: 0 4px 8px rgba(56, 142, 60, 0.2);
$tree-shadow-hover: 0 6px 12px rgba(56, 142, 60, 0.3);
$tree-shadow-active: 0 8px 16px rgba(56, 142, 60, 0.4);

// 树木风格边框
$tree-border: 1px solid rgba(56, 142, 60, 0.3);
$tree-border-active: 1px solid rgba(56, 142, 60, 0.6);

// 树木风格背景
$tree-bg-light: rgba(56, 142, 60, 0.05);
$tree-bg-medium: rgba(56, 142, 60, 0.1);
$tree-bg-strong: rgba(56, 142, 60, 0.2);

// 树木风格纹理
$tree-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23388E3C' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");

// 树木风格混合器
@mixin tree-gradient-bg($gradient: $tree-gradient-primary) {
  background: $gradient;
}

@mixin tree-card-effect {
  background: #fff;
  border-radius: 8px;
  box-shadow: $tree-shadow;
  border: $tree-border;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: $tree-shadow-hover;
    transform: translateY(-2px);
  }
}

@mixin tree-button-effect {
  background: $tree-gradient-primary;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  box-shadow: $tree-shadow;
  transition: all 0.3s ease;
  cursor: pointer;
  
  &:hover {
    background: $tree-gradient-light;
    box-shadow: $tree-shadow-hover;
    transform: translateY(-1px);
  }
  
  &:active {
    background: $tree-gradient-dark;
    box-shadow: $tree-shadow-active;
  }
}

// 树木风格动画
@keyframes tree-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1deg); }
}

@keyframes leaf-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(20px) rotate(15deg); opacity: 0.7; }
}

@keyframes tree-grow {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}